package com.wanjia.seal.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanjia.seal.manager.entity.BankInfoTB;
import com.wanjia.seal.manager.entity.SysMenu;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    @Select("select * from SYS_MENU ")
    List<SysMenu> findAllmenu();

    @Select("select * from SYS_MENU where 'menu_id'=#{MenuId}")
    SysMenu findmenuById(Integer MenuId);


    void insertmenu(Integer MenuId, String MenuName, Integer ParentId, Integer OrderNum, String Path, String Component, String Query, Integer IsFrame, Integer IsCache, String MenuType, String Visible, String Status, String Perms, String Icon, String CreateBy, Date CreateTime,String UpdateBy,Date UpdateTime,String Remark);

    List<SysMenu> getMenuByMenuId(Integer MenuId);
}
